<?php

class Mailnotice extends BaseMailnotice {
	public function __toString() {
		return $this->desc;
	}
	
	public function parse_title($arr) {
		$mes = $this->getTitle();
		foreach ( $arr as $k => $v ) {
			$mes = str_replace ( $k, $v, $mes );
		}
		return $mes;
	
	}
	
	public function parse_body($arr,$culture='en') {
		
		$mes = $this->getBody($culture);
		foreach ( $arr as $k => $v ) {
			$mes = str_replace ( $k, $v, $mes );
		}
		return $mes;
	
	}	

}
